package cn.kgc.dao.hr;

import cn.kgc.pojo.Department;
import cn.kgc.pojo.Dict;
import cn.kgc.pojo.Leaveapply;
import cn.kgc.pojo.Travelrequest;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author: wang
 * @date: 2022/2/10
 * @description:
 */
@Mapper
@Repository
public interface QingJiaDao {

    List<Dict> selDictQ(Integer id);
    Department selZhiW(Integer id);
    String selShen(Integer id);
    List<String> selName(Integer id);

    int addLe(Leaveapply leaveapply);

    int addTr(Travelrequest travelrequest);

    List<Leaveapply> selBy(Integer id,Integer state);
    List<Travelrequest> selByTr(Integer id,Integer state);

    int updLe(Integer id);
    int updTr(Integer id);

    Travelrequest selBytr(Integer id);
    Leaveapply selByle(Integer id);
}
